<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: cordic/cordic.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_a674585e0fd636fbc3b91e5f7b647f01.html">cordic</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">cordic.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="cordic_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#ifndef _CORDIC_H_</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#define _CORDIC_H_</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="cordic2c__inc_8h.html">cordic2c_inc.h</a>&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="structpoint.html">   37</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;{</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="structpoint.html#a9c6b34deaf4900ad4193c17935fd384a">   39</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="structpoint.html#a9c6b34deaf4900ad4193c17935fd384a">x</a>;</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structpoint.html#a613f8f0d7352731638b0094e1b958b87">   40</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="structpoint.html#a613f8f0d7352731638b0094e1b958b87">y</a>;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structpoint.html#aab1f0c3682401083b5bf252e7001874f">   41</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="structpoint.html#aab1f0c3682401083b5bf252e7001874f">z</a>;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;} <a class="code" href="structpoint.html">point</a>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">/* cordic.c */</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">double</span> <a class="code" href="cordic_8h.html#a0de74b8b36857d95aadfc48438b64259">deg2rad</a> ( <span class="keywordtype">double</span> deg );</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keywordtype">double</span> <a class="code" href="cordic_8h.html#a132f4d86aeaa02138e534f93cbf69757">angle_quad</a> ( <span class="keywordtype">double</span> quads , <span class="keywordtype">int</span> *quad );</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cordic_8h.html#a9e686d8e990a05ea18655a368e6d1918">Circular</a> ( <a class="code" href="cordic2c__inc_8h.html#a97ad155ac7434ee543385126cd1d3313">Cordic_T</a> <a class="code" href="ili9341_8c.html#a12ad102c2d1e7e119fdc040b0c922c7e">x</a> , <a class="code" href="cordic2c__inc_8h.html#a97ad155ac7434ee543385126cd1d3313">Cordic_T</a> <a class="code" href="ili9341_8c.html#afe490938209e0b6b15224c05a01f0b40">y</a> , <a class="code" href="cordic2c__inc_8h.html#a97ad155ac7434ee543385126cd1d3313">Cordic_T</a> z );</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="cordic_8h.html#ab9bc8a20d99938e647047015d62f6f86">cordic_quad</a> ( <span class="keywordtype">double</span> angle , <span class="keywordtype">double</span> *s , <span class="keywordtype">double</span> *c );</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="cordic_8h.html#a5d8ba4ae520a41add87512173a9289ef">cordic_deg</a> ( <span class="keywordtype">double</span> deg , <span class="keywordtype">double</span> *s , <span class="keywordtype">double</span> *c );</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="cordic_8h.html#ab5dff4f6a6c29502d824cc7574c13f1c">cordic_rad</a> ( <span class="keywordtype">double</span> rad , <span class="keywordtype">double</span> *s , <span class="keywordtype">double</span> *c );</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="cordic_8h.html#ae708dfda7767e28c3faeedf2c46deafd">scale_point</a> ( <a class="code" href="structpoint.html">point</a> *P , <span class="keywordtype">double</span> scale );</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="cordic_8h.html#a11f885e103030cb15b2f3477e21b780f">shift_point</a> ( <a class="code" href="structpoint.html">point</a> *P , <a class="code" href="structpoint.html">point</a> *shift );</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="cordic_8h.html#a11674104e89537aef6922d07f34e62ae">rotate</a> ( <a class="code" href="structpoint.html">point</a> *P , <a class="code" href="structpoint.html">point</a> *V );</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="cordic_8h.html#a793b036235e0fdd6e799866fcb14e7e4">PerspectiveProjection</a> ( <a class="code" href="structpoint.html">point</a> *P , <span class="keywordtype">double</span> scale , <span class="keywordtype">int</span> <a class="code" href="ili9341_8c.html#a12ad102c2d1e7e119fdc040b0c922c7e">x</a> , <span class="keywordtype">int</span> <a class="code" href="ili9341_8c.html#afe490938209e0b6b15224c05a01f0b40">y</a> );</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#endif // _CORDIC_H_</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="ttc" id="cordic_8h_html_ae708dfda7767e28c3faeedf2c46deafd"><div class="ttname"><a href="cordic_8h.html#ae708dfda7767e28c3faeedf2c46deafd">scale_point</a></div><div class="ttdeci">MEMSPACE void scale_point(point *P, double scale)</div><div class="ttdoc">Scale x,y,z by scale factor. </div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00239">cordic.c:239</a></div></div>
<div class="ttc" id="cordic_8h_html_a0de74b8b36857d95aadfc48438b64259"><div class="ttname"><a href="cordic_8h.html#a0de74b8b36857d95aadfc48438b64259">deg2rad</a></div><div class="ttdeci">MEMSPACE double deg2rad(double deg)</div><div class="ttdoc">Convert Degrees to Rads. </div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00057">cordic.c:57</a></div></div>
<div class="ttc" id="cordic_8h_html_a5d8ba4ae520a41add87512173a9289ef"><div class="ttname"><a href="cordic_8h.html#a5d8ba4ae520a41add87512173a9289ef">cordic_deg</a></div><div class="ttdeci">MEMSPACE void cordic_deg(double deg, double *s, double *c)</div><div class="ttdoc">Compute Sin and Cos from angle in degrees using Cordic. </div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00215">cordic.c:215</a></div></div>
<div class="ttc" id="ili9341_8c_html_afe490938209e0b6b15224c05a01f0b40"><div class="ttname"><a href="ili9341_8c.html#afe490938209e0b6b15224c05a01f0b40">y</a></div><div class="ttdeci">int16_t y[XYSTACK+2]</div><div class="ttdef"><b>Definition:</b> <a href="ili9341_8c_source.html#l00372">ili9341.c:372</a></div></div>
<div class="ttc" id="cordic_8h_html_a11f885e103030cb15b2f3477e21b780f"><div class="ttname"><a href="cordic_8h.html#a11f885e103030cb15b2f3477e21b780f">shift_point</a></div><div class="ttdeci">MEMSPACE void shift_point(point *P, point *shift)</div><div class="ttdoc">Shift x,y,z by shift. </div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00252">cordic.c:252</a></div></div>
<div class="ttc" id="ili9341_8c_html_a12ad102c2d1e7e119fdc040b0c922c7e"><div class="ttname"><a href="ili9341_8c.html#a12ad102c2d1e7e119fdc040b0c922c7e">x</a></div><div class="ttdeci">int16_t x[XYSTACK+2]</div><div class="ttdef"><b>Definition:</b> <a href="ili9341_8c_source.html#l00371">ili9341.c:371</a></div></div>
<div class="ttc" id="structpoint_html_a613f8f0d7352731638b0094e1b958b87"><div class="ttname"><a href="structpoint.html#a613f8f0d7352731638b0094e1b958b87">point::y</a></div><div class="ttdeci">double y</div><div class="ttdef"><b>Definition:</b> <a href="cordic_8h_source.html#l00040">cordic.h:40</a></div></div>
<div class="ttc" id="cordic2c__inc_8h_html_a97ad155ac7434ee543385126cd1d3313"><div class="ttname"><a href="cordic2c__inc_8h.html#a97ad155ac7434ee543385126cd1d3313">Cordic_T</a></div><div class="ttdeci">int Cordic_T</div><div class="ttdef"><b>Definition:</b> <a href="cordic2c__inc_8h_source.html#l00009">cordic2c_inc.h:9</a></div></div>
<div class="ttc" id="cordic_8h_html_ab5dff4f6a6c29502d824cc7574c13f1c"><div class="ttname"><a href="cordic_8h.html#ab5dff4f6a6c29502d824cc7574c13f1c">cordic_rad</a></div><div class="ttdeci">MEMSPACE void cordic_rad(double rad, double *s, double *c)</div><div class="ttdoc">Compute Sin and Cos from angle in Rads using Cordic. </div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00228">cordic.c:228</a></div></div>
<div class="ttc" id="cordic_8h_html_a11674104e89537aef6922d07f34e62ae"><div class="ttname"><a href="cordic_8h.html#a11674104e89537aef6922d07f34e62ae">rotate</a></div><div class="ttdeci">MEMSPACE void rotate(point *P, point *V)</div><div class="ttdoc">Rotate point P by View point. </div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00265">cordic.c:265</a></div></div>
<div class="ttc" id="structpoint_html_a9c6b34deaf4900ad4193c17935fd384a"><div class="ttname"><a href="structpoint.html#a9c6b34deaf4900ad4193c17935fd384a">point::x</a></div><div class="ttdeci">double x</div><div class="ttdef"><b>Definition:</b> <a href="cordic_8h_source.html#l00039">cordic.h:39</a></div></div>
<div class="ttc" id="structpoint_html"><div class="ttname"><a href="structpoint.html">point</a></div><div class="ttdoc">Point definition. </div><div class="ttdef"><b>Definition:</b> <a href="cordic_8h_source.html#l00037">cordic.h:37</a></div></div>
<div class="ttc" id="cpu_8h_html_ad0fe97585b8891f5e4f2b9a6426330a4"><div class="ttname"><a href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="ttdeci">#define MEMSPACE</div><div class="ttdef"><b>Definition:</b> <a href="cpu_8h_source.html#l00025">cpu.h:25</a></div></div>
<div class="ttc" id="cordic_8h_html_a132f4d86aeaa02138e534f93cbf69757"><div class="ttname"><a href="cordic_8h.html#a132f4d86aeaa02138e534f93cbf69757">angle_quad</a></div><div class="ttdeci">double angle_quad(double quads, int *quad)</div><div class="ttdoc">Compute quadrant of angle and the quadrant modulus Note: Integer part is quadrant. </div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00071">cordic.c:71</a></div></div>
<div class="ttc" id="cordic2c__inc_8h_html"><div class="ttname"><a href="cordic2c__inc_8h.html">cordic2c_inc.h</a></div></div>
<div class="ttc" id="cordic_8h_html_a9e686d8e990a05ea18655a368e6d1918"><div class="ttname"><a href="cordic_8h.html#a9e686d8e990a05ea18655a368e6d1918">Circular</a></div><div class="ttdeci">void Circular(Cordic_T x, Cordic_T y, Cordic_T z)</div><div class="ttdoc">Main Cordic routine - used for basic trig and vector rotations. </div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00103">cordic.c:103</a></div></div>
<div class="ttc" id="cordic_8h_html_ab9bc8a20d99938e647047015d62f6f86"><div class="ttname"><a href="cordic_8h.html#ab9bc8a20d99938e647047015d62f6f86">cordic_quad</a></div><div class="ttdeci">MEMSPACE void cordic_quad(double angle, double *s, double *c)</div><div class="ttdoc">Compute Sin and Cos from angle in quads using Cordic. </div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00144">cordic.c:144</a></div></div>
<div class="ttc" id="cordic_8h_html_a793b036235e0fdd6e799866fcb14e7e4"><div class="ttname"><a href="cordic_8h.html#a793b036235e0fdd6e799866fcb14e7e4">PerspectiveProjection</a></div><div class="ttdeci">MEMSPACE void PerspectiveProjection(point *P, double scale, int x, int y)</div><div class="ttdef"><b>Definition:</b> <a href="cordic_8c_source.html#l00310">cordic.c:310</a></div></div>
<div class="ttc" id="structpoint_html_aab1f0c3682401083b5bf252e7001874f"><div class="ttname"><a href="structpoint.html#aab1f0c3682401083b5bf252e7001874f">point::z</a></div><div class="ttdeci">double z</div><div class="ttdef"><b>Definition:</b> <a href="cordic_8h_source.html#l00041">cordic.h:41</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
